import request from "@/utils/request";

// 转换额度申请
export function InfoNoBusinessRele(calcSchemeId) {
    return request({
        url: `/quota/quotaCalcScheme/infoNoBusinessRele/${calcSchemeId}`,
        method: "get",
        params: {},
    });
}
// 应付单列表
export function Details(id) {
    return request({
        url: `/quota/quotaCalcScheme/info/${id}`,
        method: "get",
    });
}

// 获取当前用户可使用的产品方案列表
export function AuthorizedProductSchemes(data) {
    return request({
        url: `/quoter/scheme/common/getAuthorizedProductSchemes`,
        method: "post",
        data,
    });
}

// 额度测算提交
export function Save(data) {
    return request({
        url: `/quota/quotaCalcScheme/applySubmit`,
        method: "post",
        data,
    });
}

export function DraftSave(data) {
    return request({
        url: `/quota/quotaCalcScheme/applyDraftSave`,
        method: "post",
        data,
    });
}

// 额度测算提交
export function Insurance(params) {
    return request({
        url: `/quoter/insurance/item-list`,
        method: "get",
        params,
    });
}

// 额度测算提交
export function Decoration(params) {
    return request({
        url: `/quoter/decoration/item-list`,
        method: "get",
        params,
    });
}

// 租金预览表
export function RentPaymentPreview(params) {
    return request({
        url: `/finance/rentPaymentPreview/list`,
        method: "post",
        data: params,
    });
}

// 转换额度申请
export function InfoCopy(calcSchemeId) {
    return request({
        url: `/quota/quotaCalcScheme/infoCopy/${calcSchemeId}`,
        method: "get",
        params: {},
    });
}
